package main

import (
	"log"
	"server_cluster/battle/battle_config"
	"server_cluster/battle/sharemem"
)

func main() {
	battle_config.InitConfig()
	shmid := sharemem.Get_myshm(&(sharemem.Myshm))
	if shmid <= 0 {
		panic("get myshm fail.")
	}
	var myshm = sharemem.Myshm
	if myshm.Status_sync == 1 {
		myshm.Status_sync = 2
		log.Println("stop command ok.")
	} else {
		log.Printf("game server is not running.failed Status = %v", myshm.Status_sync)
	}
}
